package aufgabe_2_test.try02;

import java.math.BigInteger;

/**
 * a ResultObject represent information about the Calculation
 * @author J. Quenzel & R. Flaegel
 *
 */
public class ResultObject {
	/**
	 * represent the N in Rho method
	 */
	private BigInteger n;
	/**
	 * found factors of N in form x*y*z
	 */
	private String factors;
	/**
	 * the collected cpu time of all workers
	 */
	private String sum_cpuTime;
	/**
	 * represent the  end time - start time in master
	 */
	private String wall_cpuTime;
	
	public ResultObject(BigInteger n, String fac, String sumT, String wallT) {
		this.n = n;
		this.factors = fac;
		this.sum_cpuTime = sumT;
		this.wall_cpuTime = wallT;
	}
	
	public BigInteger getN() {
		return n;
	}
	
	public String getFactors() {
		return factors;
	}
	
	public void setSum_cpuTime(String sum) {
		sum_cpuTime = sum;
	}
	
	public String getSum_cpuTime() {
		return sum_cpuTime;
	}
	
	public String getWall_cpuTime() {
		return wall_cpuTime;
	}

}
